home *** CD-ROM | disk | FTP | other *** search
- Path: eua.ericsson.se!usenet
- From: euamts@eua.ericsson.se (Mats Henricson)
- Newsgroups: comp.lang.c++
- Subject: Re: Coding Standards for C++
- Date: 19 Jan 1996 13:58:18 GMT
- Organization: Ericsson Telecom Systems Labs, Stockholm, Sweden
- Message-ID: <4do81q$380@euas20.eua.ericsson.se>
- References: <4dhuok$qpl@news3.digex.net>
- Reply-To: euamts@eua.ericsson.se
- NNTP-Posting-Host: euax3i4c06.eua.ericsson.se
- NNTP-Posting-User: euamts
-
- In article <4dhuok$qpl@news3.digex.net>, gettier@rdaconsultants.com (Al Gettier) writes:
- >My company has given me the responsibility of coming up with some
- >coding standards for our developers.
- >
- >I would like to tap into the experience of others in this area, and
- >reuse any ideas others have.
- >
- >Has your company prepared coding standards for C++? Did they have a
- >positive effect on long term productivity? Can you share those
- >standards?
-
- Hi!
-
- Below is a description on how to get the Ellemtel public domain
- programming standard by ftp.
-
- Best regards,
-
- Mats Henricson
- Ericsson Telecom Systems Labs
- Stockholm
- Sweden
- ====================================================================
- "Public Domain" Coding standards for C++ in ENGLISH
-
- Hi!
-
- Our programming standard for C++ has finally been translated to English.
- In addition, some minor changes have been made. We believe that this
- version is rather stable, so that the next version should not be expected
- for quite a while.
-
- Many people have aversions against programming standards. We recognize this
- and have therefore tried to make our document as flexible as possible.
- We have a set of 51 RULES (sometimes with exceptions) which we do not see
- any reason not to follow. Then we have a set of 79 RECOMMENDATIONS. They
- are meant as guidelines. We belive that most code should follow these
- recommendations, but we have ourselves recognized times when braking these
- recommendations are not only appropriate, but also necessary.
-
- To you who really hate programming rules: we challenge you to try to
- reduce the number. We would be all too happy if you succeed, since we too
- are programmers and dislike rules ourselves.
-
- The document only touches the subject of C++ design. The chapter on
- portability is sketchy. We have also tried to avoid subjects that we
- believe belong to an introductionary course in C++.
-
- The document contains 70 code examples. Many are simple, but some are
- quite complex. Most examples are possible to compile directly, while some
- may need some more or less obvious extra code to make sense for the
- compiler.
-
- The document has the same copyright notice as the cool library,
- i.e. it is OK to copy and use the document, but we retain the copyrights.
- Also, we provide no warranty at all. If any of our code examples destroy
- your network, we will simply say "Sorry!".
-
- The document was written using FrameMaker, but has been saved in Postscript
- and compressed. It can be accessed by anonymous ftp from our server:
- euagate.eua.ericsson.se (Internet Address: 134.138.134.16)
- It is in the directory:
- ~ftp/pub/eua/c++
- The file is ~126k large and its name is:
- rules.ps.Z
-
- Extra info per 1992-12-18:
- The above mentioned document is formatted for A4 paper. There is
- also one document for US Letter, called rules.US.ps.Z. To this you
- can add two similar mif-versions (Maker Interchange Format - editable
- FrameMaker format) called rules.mif.Z and rules.US.mif.Z. Finally
- there is a plain ascii version, called rules.ascii.Z.
-
- Extra info per 1993-03-19:
- Now there is also a plain ascii file called rules.MAX70.ascii. It is
- formatted to have no lines longer than 70 characters. All tabs are
- also removed and exchanged to plain spaces. This is to make it easier
- to print on plain ascii printers.
-
- If there are any problems in accessing or printing the file, please contact
- us at:
- rules@eua.ericsson.se
-
- All comments are welcome. Especially if you find any bugs or
- misunderstandings from our side. Please make it clear which version
- you have comments on, i.e. if you have comments on this version
- state "Version C in English" somewhere.
-
- Erik Nyquist
- Mats Henricson
-
- Ericsson Telecom Systems Labs
- Box 1505
- 125 25 Alvsjo
- Sweden
-
-
-